Ext.define('Jason.store.NavigationTree', {
    extend: 'Ext.data.TreeStore',
    storeId: 'NavigationTree',
    alias: 'store.NavigationTree',
    autoLoad: false,
    sorters: [{
        property: 'order',
        direction: 'ASC'
    }],
    defaultRootText: '导航',
    fields: [
        { name: 'text', mapping: 'showname' },
        { name: 'iconCls', mapping: 'icon' },
        { name: 'routeId', mapping: 'extendtype' },
        { name: 'view', mapping: 'view' }
    ],
    root:{text:'1111'},
    proxy: {
        type: 'ajax',
        url: reqUrl.sys.initMenu
    },
    listeners:{
        'beforeload' : function(store){
             Ext.apply(store.proxy.extraParams,{
                'authorization':session.get('access_token') || ''   
             });
        }
    }
});

